package com.shushan.pages.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: WXPayBean
 * @Desciption: 微信支付请求参数bean
 * @author: yichaohua
 * @date: 2018-05-22
 */
public class WXPayBean extends NetBaseBean {

    public String appid;
    public String noncestr;
    public String packageName;
    public String partnerid;
    public String prepayid;
    public int timestamp;
    public String sign;
    public String out_trade_no;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {

        appid = jsonObject.optString("appid","");
        noncestr = jsonObject.optString("noncestr","");
        packageName = jsonObject.optString("package","");
        partnerid = jsonObject.optString("partnerid","");
        prepayid = jsonObject.optString("prepayid","");
        timestamp = jsonObject.optInt("timestamp",0);
        sign = jsonObject.optString("sign","");
        out_trade_no = jsonObject.optString("out_trade_no","");
    }
}
